package br.com;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;
import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.border.Border;
import javax.swing.border.EtchedBorder;
import javax.swing.border.TitledBorder;

import com.birosoft.liquid.LiquidLookAndFeel;
import javax.swing.JTextField;
import javax.swing.JRadioButton;

public class SwingExemplo1 extends JFrame {
	/**
	 * 
	 */
	private static final long serialVersionUID = -8196736810155747192L;
	JPanel panel;  
    JLabel msg;  
      
    /*
    public SwingExemplo1()  
    {  
        super("Java!");
//        this.getRootPane().getBorder()
    }  
      */
    public void criaJanela()  
    {         
        panel = new JPanel();  
        msg = new JLabel("GUJ.com.br");  
                
        
        panel.add(msg); 
        panel.setBorder(new TitledBorder("Thumbnails"));
          
        getContentPane().add(panel, BorderLayout.CENTER); 
        
        Border border = BorderFactory.createLineBorder(Color.BLACK, 1, true) ;
        getRootPane().setBorder(border);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);  
          
        pack();  
        setVisible(true);  
    } 
    

      public static void main(String args[])  
    {  
    	try {
    		System.setProperty(
    	            "Quaqua.tabLayoutPolicy","wrap"

    	         );
    			UIManager.LookAndFeelInfo[] lafInfo = UIManager.getInstalledLookAndFeels();

    			for(int i=0; i < lafInfo.length; i++) {
    				System.out.println(lafInfo[i].getName()+ " " + lafInfo[i].getClassName());    			
    			}
    		
    			System.out.println(ch.randelshofer.quaqua.QuaquaManager.getLookAndFeel());
    			UIManager.setLookAndFeel(
						ch.randelshofer.quaqua.QuaquaManager.getLookAndFeel()
					//"javax.swing.plaf.metal.MetalLookAndFeel"
					//"javax.swing.plaf.nimbus.NimbusLookAndFeel"
					//"com.sun.java.swing.plaf.motif.MotifLookAndFeel"
					//"com.sun.java.swing.plaf.windows.WindowsLookAndFeel"
					//"com.sun.java.swing.plaf.windows.WindowsClassicLookAndFeel"
					//"com.birosoft.liquid.LiquidLookAndFeel"
					//UIManager.getSystemLookAndFeelClassName()
					//UIManager.getCrossPlatformLookAndFeelClassName()
				);
        
    			LiquidLookAndFeel.setLiquidDecorations(true, "mac");  
    	} catch (UnsupportedLookAndFeelException e) {
    		// handle exception
    	}
    	
        SwingExemplo1 s = new SwingExemplo1();  
        s.criaJanela();  
    }  
      
    public SwingExemplo1() {
        JPanel simplePanel = new JPanel(new GridLayout(1, 1, 5, 5));

        JLabel etchedRasBorderLabel = new JLabel("Raised Etched Border", JLabel.CENTER);
        etchedRasBorderLabel.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.RAISED));
        simplePanel.add(etchedRasBorderLabel);
        
        getContentPane().add(simplePanel);
      }
    /*
      public static void main(String[] argv) {
    	  SwingExemplo1 borderFactoryDemo = new SwingExemplo1();

        borderFactoryDemo.setVisible(true);
        borderFactoryDemo.pack();
      }
      */
   
}
